/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       bitmap_layer_window.h

	$Header: /game/bitmap_layer_window.h $

	$NoKeywords: $

 ************************************************************************/
#ifndef BITMAP_LAYER_WINDOW_H_INCLUDED
#define BITMAP_LAYER_WINDOW_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "bitmap_layer_window_ptr.h"
#include "game_window.h"

class t_bitmap_layer;

class t_bitmap_layer_window : public t_window
{
public:
	t_bitmap_layer_window( t_bitmap_layer const* bitmap, t_screen_point point, 
		                   t_window* parent = 0, bool use_offset = true );

	t_bitmap_layer const* get_bitmap() const;
	virtual bool		  is_contained( t_screen_point point ) const; 
	virtual void		  paint( t_paint_surface& paint_surface );
	void				  set_bitmap( t_bitmap_layer const* bitmap, bool use_offset = false );
	void				  set_bitmap( t_bitmap_layer const* bitmap, t_screen_point point );
protected:
	virtual void on_bitmap_changed();

	t_bitmap_layer const* m_bitmap;
};

inline t_bitmap_layer const* t_bitmap_layer_window::get_bitmap() const
{
	return m_bitmap;
}

#endif // BITMAP_LAYER_WINDOW_H_INCLUDED